package com.yangtao.prototype.system.domain;

import com.yangtao.framework.hibernate.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 流水号
 *
 * @author 杨涛
 * @since 1.0
 */
@Entity
@Table(name = "sys_serial_number")
public class SerialNumber extends BaseEntity implements Serializable {
	/**
	 * 序列化id
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 日期字符串
	 */
	@Column(length = 8)
	private String dateStr;
	/**
	 * 滚动流水号
	 */
	private Long rollingNum;
	/**
	 * 单据类型
	 */
	@Column(length = 10)
	private String noteType;

	/**
	 * @return the dateStr
	 */
	public String getDateStr() {
		return dateStr;
	}

	/**
	 * @param dateStr the dateStr to set
	 */
	public void setDateStr(String dateStr) {
		this.dateStr = dateStr;
	}

	/**
	 * @return the rollingNum
	 */
	public Long getRollingNum() {
		return rollingNum;
	}

	/**
	 * @param rollingNum the rollingNum to set
	 */
	public void setRollingNum(Long rollingNum) {
		this.rollingNum = rollingNum;
	}

	/**
	 * @return the noteType
	 */
	public String getNoteType() {
		return noteType;
	}

	/**
	 * @param noteType the noteType to set
	 */
	public void setNoteType(String noteType) {
		this.noteType = noteType;
	}

}
